#pragma once

#include "Control/ControlInclude.h"
#include "Util/ResConfig.h"
#include "ZImprove/IResCfg.h"
#include "ZImprove/ContainerImprove.h"


#include "ProgressEx.h"
#include "CommandDef.h"


#include <map>
using namespace std;


#define	   MAX_PRO				20

typedef map<DWORD,CNumberCtrl*>  MAP_NUMCTRL;



class CMainMenuPainter;

class CWorkModeCon 
	//:public CImproveCon
	: public CContainer
{
public:
	CWorkModeCon(HWND hWnd);
public:
	virtual ~CWorkModeCon(void);
	virtual BOOL InitControls(DWORD dwData);
	virtual void OnCommand(HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam);

	
	virtual void  Paint(CDC *pDC);


	virtual void  OnLButtonDown(UINT nFlags, CPoint point);
	virtual void  OnLButtonUp(UINT nFlags, CPoint point);




	void		 ShowAnimate( CDC* pDCFront,  CDC* pDCBK );

	BOOL		 AlphaBlendMaskBk( CDC *pDCBK, HBITMAP hbmpBK,int nalpha );


public:
	CIResCfg		m_config;

protected:
	int					m_nAniFrame;

	CBmpBtn*			m_pBtnManual;
	CBmpBtn*			m_pBtnPyramid;
	CBmpBtn*			m_pBtnHillClimb;

	CBmpBtn*			m_pBtnInterval;
	CBmpBtn*			m_pBtnRandom;
	CBmpBtn*			m_pBtnCstWatts;

};
